<?php
class LoginForm extends MForm {
    public function __construct() {
        parent::__construct(__route('ml-microblog/home/login'));
        $this->setMethod(self::METHOD_POST);
        $this->add(self::ELEMENT_TEXT, 'loginName')
                ->setLabel(__t('mandrill.microblog.loginName'));
        $this->add(self::ELEMENT_PASSWORD, 'loginPassword')
                ->setLabel(__t('mandrill.microblog.loginPassword'));;
        $this->add(self::ELEMENT_SUBMIT, 'loginSubmit');
    }
}
?>
